package com.tianqu.tms.core.security;


import com.tianqu.tms.core.util.Registry;
import com.tianqu.tms.core.util.TmsConstants;

/**
 * �ж�ϵͳ�Ƿ��ڿ�ʹ�õ�ʱ����ڡ�
 * @author liugang
 *
 */
public abstract class ServiceController implements TmsConstants {

	/**
	*AccessController
	* @return  AccessController
	*/
	public static ServiceController getInstance() {
		return (ServiceController) Registry.get(SERVICE_CONTROLLER);
	}

	/**
	*checkPermission
	* @param userProfile UserProfile
	* @param className String
	* @throws IrisException
	*/
	public abstract boolean onService()	throws Exception;
}
